package com.example.orderservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "inventory-service")
public interface InventoryFeignClient {

    @PostMapping("/inventory/deduct")
    Boolean deductInventory(@RequestParam String productId, @RequestParam Integer count);
}
    